<template>
    <section class="withdraw-sub-main base-main">
      <div class="head pdlr15">
        <p class="icon text-c">
          <i class="iconfont icondagou1-copy color7E82F6"></i>
        </p>
        <p class="success-txt text-c color45454D fs17">
          提现申请提交成功
        </p>
        <p class="sub-txt fs14 color7A7B82 line-bottom text-c">
          提现后5个工作日内到账，若未及时到账请联系索弗商城客服人员
        </p>
      </div>
      <div class="cell pdlr15 fs15 color45454D">
        <p>
          <span class="text-l ">
            收账账户
          </span>
          <span class="text-r ">{{bank}} 尾号{{tailNum}}</span>
        </p>
        <p>
          <span class="text-l ">
            提现金额
          </span>
          <span class="text-r ">{{withdrawAmount}}元</span>
        </p>
      </div>

      <p class="sub-btn text-c">
        <span class="base-btn inline-block" @click="handleToIndex">返回首页</span>
      </p>
    </section>
</template>

<script type="text/ecmascript-6">
  export default {
    data() {
      return {
        bank: localStorage.getItem('bank'),//所属银行
        tailNum: localStorage.getItem('cardNum').substr(-4),//尾号
        withdrawAmount:localStorage.getItem('withdrawAmount'),//提现金额
      }
    },
    created(){
      localStorage.removeItem('cardNum');
      localStorage.removeItem('bank');
      localStorage.removeItem('subbranchBank');
      localStorage.removeItem('withdrawAmount');
    },
    methods: {
      //返回首页
      handleToIndex(){
        this.$router.replace({
          path:'/index'
        })
      },
    },
  }
</script>

<style scoped lang="scss">
  @import '../../assets/css/withdrawSub.scss';
</style>
